package com.departmentstore.repository;

import com.departmentstore.entity.Department;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends JpaRepository<Department, String> {
    // 根据部门名称查找部门
    Department findByName(String name);
    
    // 根据经理ID查找部门
    Department findByManagerEmployeeId(String employeeId);
} 